#Copyright (c) 2010 AFP Authors
#This source code is released under the terms of the
#MIT license. Please see the file LICENSE for license details.

ifeq ($(AFPMANDIR),)
$(error $$AFPMANDIR not set, documentation may be found in doc/)
endif

install: 
	-mkdir $(AFPMANDIR)/man1/ $(AFPMANDIR)/man3/ $(AFPMANDIR)/man5/ 2> /dev/null	
	cp afp.1 $(AFPMANDIR)/man1/
	cp afp-dev.3 $(AFPMANDIR)/man3/
	cp afp-fmt.5 $(AFPMANDIR)/man5/
	mandb -c